<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('文章列表')" />
	<th:block th:include="include :: layout-latest-css" />
	<th:block th:include="include :: ztree-css" />
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">


		<div class="form-group">
			<label class="col-sm-3 control-label">文章名称：</label>
			<div class="col-sm-8">
				<input id="title" name="title" th:field="*{article.title}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">副标题：</label>
			<div class="col-sm-8">
				<input id="subtitle" name="subtitle" th:field="*{article.subtitle}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">发布时间：</label>
			<div class="col-sm-8">
				<input id="publishTime" name="publishTime" th:field="*{article.publishTime}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">状态：</label>
			<div class="col-sm-8">
				<label class="radio-inline">
					<input type="radio" name="status"  th:if="${article.status == 1}" checked> 显示
				</label>
				<label class="radio-inline">
					<input type="radio" name="status"  th:if="${article.status == 2}"   checked> 隐藏
				</label>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">是否登录权限：</label>
			<div class="col-sm-8">
				<label class="radio-inline">
					<input type="radio" name="isComment"  th:if="${article.isComment == 1}" checked> 是
				</label>
				<label class="radio-inline">
					<input type="radio" name="isComment"  th:if="${article.isComment == 2}"   checked> 否
				</label>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">是否推荐：</label>
			<div class="col-sm-8">
				<label class="radio-inline">
					<input type="radio" name="isRecommend"  th:if="${article.isRecommend == 1}" checked> 是
				</label>
				<label class="radio-inline">
					<input type="radio" name="isRecommend"  th:if="${article.isRecommend == 2}"   checked> 否
				</label>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">发布者：</label>
			<div class="col-sm-8">
				<input id="publishUser" name="publishUser" th:field="*{article.publishUser}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">开始时间：</label>
			<div class="col-sm-8">
				<input id="startTime" name="startTime" th:field="*{article.startTime}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">类型：</label>
			<div class="col-sm-8">
				<select name="type" class="form-control" >
					<option value="1">正常</option>
					<option value="2">预览</option>
					<option value="3">程序</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">跳转地址：</label>
			<div class="col-sm-8">
				<input id="jumpUrl" name="jumpUrl" th:field="*{article.jumpUrl}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">图片路径：</label>
			<div class="col-sm-8">
				<input id="imageUrl"  th:field="*{article.imageUrl}" class="form-control" type="hidden">
				<img id="imageId"  >
			</div>
		</div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
	var imageUrl = $("#imageUrl").val();
    $("#imageId").attr("src",imageUrl);
</script>
</body>
</html>